package com.catering.service.impl;

import com.catering.mapper.DOrderMapper;
import com.catering.pojo.DOrder;
import com.catering.service.DOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service
public class DOrderServiceImpl implements DOrderService {
    @Resource
    private DOrderMapper dOrderMapper;

    @Override
    public List<DOrder> list() {
        List<DOrder> list=dOrderMapper.findAll();
        return list;
    }

    @Override
    public void update(Integer id) {
        dOrderMapper.update(id);
    }
}
